package com.code.day17;

import java.util.stream.Stream;

public class Demo04Stream {
    public static void main(String[] args) {
        Stream<String> stream = Stream.of("哪吒传奇", "小鲤鱼历险记", "虹猫蓝兔七侠传", "飞天小女警", "猫眼三姐妹");
        long count  = stream.count();
        System.out.println(count);

        stream.filter(s -> s.length()>4).forEach(System.out::println);
    }
}
